package sql.record;

/**
 * Links between a user and his registered courses
 * @author Ron Galay
 *
 */
public class Registration extends TableRecord {
	
	private String searchField;
	
	public Registration() {}
	
	public Registration(String searchField) {
		this.searchField = searchField;
	}
	
	@SQLType(type="VARCHAR(256)")
	public String userName;
	
	@SQLType(type="VARCHAR(256)")
	public String courseName;

	@Override
	protected TableRecord getInstanceFactory() {
		return new Registration(searchField); 
	}
	
	@Override 
	public String getSearchName() {
		
		return searchField;
	}
	
	
}
